/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/layouts/index'),
    redirect: '/index',
    meta: {
      title: '工作台',
      keepAlive: false
    },
    children: [
      {
        path: '/index',
        name: 'index',
        component: () => import('@/views/index'),
        meta: { title: '首页', keepAlive: false }
      },

      {
        path: '/mine',
        name: 'mine',
        component: () => import('@/views/mine'),
        meta: { title: '个人中心', keepAlive: false }
      }
    ]
  },

  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login'),
    meta: { title: '登录', keepAlive: false }
  },

  {
    path: '/knowledge',
    name: 'knowledge',
    component: () => import('@/views/knowledge'),
    meta: { title: '知识中心', keepAlive: false }
  },
  {
    path: '/knowledge/detail',
    name: 'knowledgeDetail',
    component: () => import('@/views/knowledge/detail/index'),
    meta: { title: '知识详情', keepAlive: false }
  },
  {
    path: '/knowledge/learn',
    name: 'learnKnowledge',
    component: () => import('@/views/knowledge/learn/index'),
    meta: { title: '知识播放', keepAlive: false }
  },


  {
    path: '/certificate',
    name: 'certificate',
    component: () => import('@/views/certificate'),
    meta: { title: '我的证书', keepAlive: false }
  },
  {
    path: '/certificate/detail',
    name: 'certificateDetail',
    component: () => import('@/views/certificate/detail/index'),
    meta: { title: '证书详情', keepAlive: false }
  },

  {
    path: '/mine/creditList',
    name: 'creditList',
    component: () => import('@/views/mine/creditList'),
    meta: { title: '我的学分', keepAlive: false }
  },

]
